<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .wrapper {
        padding: 0 10px;
        display: flex;
        flex-wrap: wrap;
        margin-left: -10px;
      }

      .item {
        margin-left: 10px;
        margin-bottom: 10px;
        flex: 0 1 calc(50% - 10px);
        background-color: #000;
        height: 200px;
      }
    </style>
  </head>
  <body>
    <div class="wrapper">
      <div class="item"></div>
      <div class="item"></div>
      <div class="item"></div>
      <div class="item"></div>
      <div class="item"></div>
    </div>
  </body>
</html>
